#ifndef CODEFOLDER_LOGS_HPP_
#define CODEFOLDER_LOGS_HPP_

#include <string>
#include <iostream>
#include <libxml/tree.h>
#include "Snippet.hpp"

#pragma comment(lib, "libxml2")
#pragma comment(lib, "iconv")

using std::string;

class CodefolderLogs
{
private:
  xmlDocPtr m_document;
	xmlNodePtr m_root, m_snippet, m_snippetInfo;
  string m_file;

  bool m_success;

public:
  CodefolderLogs(string xmlFile);
  ~CodefolderLogs();

  bool LoadSuccess();

  void Fetch(SnippetList& list);
  void Save(SnippetList& list);
};

#endif